package com.fjnu.dto;

/**
 * 文章数据传输对象
 */
public class ArticleDto {
    private Integer userId;      // 作者ID
    private String title;        // 文章标题
    private String content;      // 文章内容
    private Integer categoryId;  // 分类ID

    // Getter和Setter
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }
}